:root {
	--sspa-gold: #c7902e;
	--sspa-dark: #090807;
	--sspa-cream: #fbf6eb;
	--sspa-line: #ece7de;
	--sspa-text: #171717;
	--sspa-muted: #666;
	--sspa-shadow: 0 20px 60px rgba(10, 8, 6, 0.12);
}

body .sspa-account,
body .sspa-modal,
body .sspa-standalone-auth,
body .sspa-lost-wrap {
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	color: var(--sspa-text);
}

.woocommerce-account .entry-title,
.woocommerce-account .page-title {
	display: none !important;
}

.sspa-account,
.sspa-standalone-auth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sspa-account a,
.sspa-modal a,
.sspa-lost-wrap a {
	color: var(--sspa-gold);
	text-decoration: none;
}

.sspa-hero {
	min-height: 260px;
	display: grid;
	place-items: center;
	background-color: #050505;
	background-position: center;
	background-size: cover;
	position: relative;
	isolation: isolate;
}

.sspa-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28));
	z-index: -1;
}

.sspa-hero__inner {
	text-align: center;
	padding: 40px 20px;
}

.sspa-hero h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(46px, 7vw, 96px);
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0;
	color: #f6d58a;
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.sspa-hero p {
	margin: 24px auto 0;
	max-width: 720px;
	font-size: clamp(15px, 2vw, 23px);
	line-height: 1.35;
	color: #fff;
	text-transform: uppercase;
}

.sspa-account__body {
	width: min(1520px, calc(100% - 32px));
	margin: 28px auto 42px;
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.sspa-sidebar,
.sspa-welcome-card,
.sspa-stat-card,
.sspa-empty,
.sspa-native-card {
	background: #fff;
	border: 1px solid var(--sspa-line);
	border-radius: 8px;
	box-shadow: var(--sspa-shadow);
}

.sspa-sidebar {
	padding: 12px;
	position: sticky;
	top: 24px;
}

.sspa-nav {
	display: grid;
	gap: 2px;
}

.sspa-nav a {
	min-height: 54px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 20px;
	border-bottom: 1px solid var(--sspa-line);
	color: #171717;
	font-weight: 600;
	border-radius: 6px;
}

.sspa-nav a:last-child {
	border-bottom: 0;
}

.sspa-nav a.is-active {
	background: linear-gradient(135deg, #080706, #201c17);
	color: #fff;
}

.sspa-sidebar__welcome {
	margin-top: 24px;
	padding: 20px;
	border-radius: 8px;
	background: radial-gradient(circle at 20% 0, rgba(199, 144, 46, 0.35), transparent 40%), #0b0a09;
	color: #fff;
}

.sspa-sidebar__welcome strong,
.sspa-sidebar__welcome p {
	display: block;
	margin: 8px 0 0;
}

.sspa-sidebar__welcome p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

.sspa-main {
	display: grid;
	gap: 22px;
}

.sspa-welcome-card {
	min-height: 170px;
	padding: 30px;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) 180px;
	gap: 24px;
	align-items: center;
	overflow: hidden;
	position: relative;
}

.sspa-avatar {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 30% 20%, #2b2b2b, #050505);
	color: #f7d68c;
	font-size: 26px;
	font-weight: 700;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.sspa-welcome-card span {
	color: var(--sspa-muted);
}

.sspa-welcome-card h2 {
	margin: 4px 0;
	font-size: 26px;
	line-height: 1.1;
	color: #111;
}

.sspa-welcome-card p {
	margin: 6px 0;
	color: #3a3a3a;
	line-height: 1.55;
}

.sspa-bag-art {
	justify-self: end;
	width: 135px;
	height: 118px;
	opacity: 0.18;
	border: 10px solid var(--sspa-gold);
	border-top: 0;
	border-radius: 26px 26px 8px 8px;
	position: relative;
}

.sspa-bag-art::before {
	content: "";
	position: absolute;
	left: 30px;
	top: -38px;
	width: 54px;
	height: 54px;
	border: 8px solid var(--sspa-gold);
	border-bottom: 0;
	border-radius: 30px 30px 0 0;
}

.sspa-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.sspa-stat-card {
	min-height: 150px;
	padding: 24px;
	color: #111;
	display: grid;
	grid-template-columns: 58px 1fr;
	grid-template-rows: auto auto auto;
	column-gap: 16px;
	align-items: center;
}

.sspa-stat-card .sspa-icon {
	grid-row: 1 / 4;
}

.sspa-stat-card strong {
	font-size: 14px;
}

.sspa-stat-card b {
	font-size: 32px;
	line-height: 1;
}

.sspa-stat-card small {
	color: var(--sspa-gold);
	font-size: 14px;
}

.sspa-empty {
	padding: 24px;
	display: grid;
	grid-template-columns: 52px 1fr auto;
	gap: 18px;
	align-items: center;
}

.sspa-empty h3,
.sspa-empty p {
	margin: 0;
}

.sspa-empty p {
	margin-top: 5px;
	color: var(--sspa-muted);
}

.sspa-outline-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid var(--sspa-gold);
	border-radius: 6px;
	font-weight: 700;
	color: var(--sspa-gold);
}

.sspa-recent-orders {
	background: #fff;
	border: 1px solid var(--sspa-line);
	border-radius: 8px;
	box-shadow: var(--sspa-shadow);
	padding: 24px;
}

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

.sspa-section-head h3,
.sspa-section-head p {
	margin: 0;
}

.sspa-section-head p {
	margin-top: 5px;
	color: var(--sspa-muted);
}

.sspa-order-list {
	display: grid;
	gap: 10px;
}

.sspa-order-row {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--sspa-line);
	border-radius: 8px;
	background: #fff;
}

.sspa-order-row strong,
.sspa-order-row small {
	display: block;
}

.sspa-order-row small {
	color: var(--sspa-muted);
	margin-top: 4px;
}

.sspa-mini-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 6px;
	background: var(--sspa-dark);
	color: #f4cd79 !important;
	font-weight: 700;
}

.sspa-native-card {
	padding: 28px;
	overflow-x: auto;
}

.sspa-native-card .woocommerce-MyAccount-navigation {
	display: none;
}

.sspa-native-card button,
.sspa-native-card .button {
	border-radius: 8px;
	background: var(--sspa-dark);
	color: #f4cd79;
	border: 0;
	padding: 12px 18px;
	font-weight: 800;
}

.sspa-trust {
	background: linear-gradient(135deg, #060504, #15120f);
	color: #fff;
	padding: 24px max(20px, calc((100vw - 1320px) / 2));
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.sspa-trust div {
	display: grid;
	grid-template-columns: 52px 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sspa-trust div:last-child {
	border-right: 0;
}

.sspa-trust .sspa-icon {
	grid-row: 1 / 3;
}

.sspa-trust small {
	color: rgba(255, 255, 255, 0.72);
}

.sspa-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	background: rgba(199, 144, 46, 0.14);
	color: var(--sspa-gold);
	flex: 0 0 auto;
}

.sspa-icon::before {
	font-size: 22px;
	line-height: 1;
}

.sspa-icon--grid::before { content: "▦"; }
.sspa-icon--box::before { content: "▣"; }
.sspa-icon--download::before { content: "⇩"; }
.sspa-icon--pin::before { content: "⌖"; }
.sspa-icon--user::before { content: "♙"; }
.sspa-icon--logout::before { content: "↪"; }
.sspa-icon--crown::before { content: "♛"; }
.sspa-icon--cart::before { content: "▱"; }
.sspa-icon--shield::before { content: "♢"; }
.sspa-icon--truck::before { content: "▰"; }
.sspa-icon--return::before { content: "↻"; }
.sspa-icon--lock::before { content: "▢"; }

.sspa-modal-open {
	overflow: hidden;
}

.sspa-modal[aria-hidden="true"] {
	display: none;
}

.sspa-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.sspa-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(2px);
}

.sspa-modal__dialog {
	width: min(1120px, calc(100vw - 36px));
	max-height: min(760px, calc(100vh - 36px));
	position: relative;
	z-index: 1;
}

.sspa-modal__close {
	position: absolute;
	right: 22px;
	top: 22px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.sspa-auth {
	min-height: 620px;
	display: grid;
	grid-template-columns: minmax(440px, 0.92fr) minmax(420px, 1.08fr);
	background: #fff;
	border-radius: 48px;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.sspa-auth__panel {
	padding: 58px 60px;
	text-align: center;
	overflow-y: auto;
}

.sspa-brand {
	display: grid;
	justify-items: center;
	color: var(--sspa-gold);
	line-height: 1;
	margin-bottom: 18px;
}

.sspa-brand__mark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 42px;
}

.sspa-brand__text {
	font-size: 13px;
	font-weight: 700;
}

.sspa-auth__tabs {
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--sspa-line);
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 22px;
}

.sspa-auth__tabs button {
	min-width: 118px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	padding: 10px 18px;
	cursor: pointer;
	font-weight: 700;
}

.sspa-auth__tabs button.is-active {
	background: var(--sspa-dark);
	color: #f4cd79;
}

.sspa-auth__view {
	display: none;
}

.sspa-auth__view.is-active {
	display: block;
}

.sspa-auth h2 {
	margin: 0;
	font-size: 31px;
	line-height: 1.1;
}

.sspa-auth p {
	margin: 12px 0 28px;
	color: var(--sspa-muted);
}

.sspa-field {
	display: block;
	margin-bottom: 18px;
	text-align: left;
}

.sspa-field span {
	display: block;
	margin: 0 0 8px;
	color: #1b1b1b;
	font-size: 14px;
	font-weight: 800;
}

.sspa-field input {
	width: 100%;
	min-height: 52px;
	border: 1px solid #cfc7bb !important;
	border-radius: 14px;
	padding: 0 18px;
	font-size: 16px;
	background: #fff !important;
	color: #111 !important;
	box-sizing: border-box;
	box-shadow: none !important;
	outline: none;
	-webkit-text-fill-color: #111;
	appearance: none;
}

.sspa-field input:focus {
	outline: 2px solid rgba(199, 144, 46, 0.22);
	border-color: var(--sspa-gold);
}

.sspa-field input::placeholder {
	color: #8a8176;
	opacity: 1;
}

.sspa-field input:-webkit-autofill,
.sspa-field input:-webkit-autofill:hover,
.sspa-field input:-webkit-autofill:focus {
	box-shadow: 0 0 0 1000px #fff inset !important;
	-webkit-text-fill-color: #111 !important;
}

.sspa-auth__row,
.sspa-terms {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 8px 0 24px;
	color: #555;
	font-size: 14px;
	text-align: left;
}

.sspa-terms {
	justify-content: flex-start;
}

.sspa-button,
.sspa-inline-trigger,
.sspa-page-open {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #050505, #17130f);
	color: #f4cd79;
	font-weight: 800;
	cursor: pointer;
}

.sspa-auth-switch {
	margin: 20px 0 0;
	color: var(--sspa-muted);
}

.sspa-auth__image {
	background-color: #0a0908;
	background-position: center;
	background-size: cover;
	border-radius: 44px 0 0 44px;
	min-height: 100%;
}

.sspa-notices .woocommerce-error,
.sspa-notices .woocommerce-message,
.sspa-lost-wrap .woocommerce-error,
.sspa-lost-wrap .woocommerce-message {
	text-align: left;
	border-top-color: var(--sspa-gold);
}

.sspa-standalone-auth {
	min-height: 78vh;
	background: var(--sspa-dark);
	display: grid;
	place-items: center;
	padding: 44px 0;
}

.sspa-page-open {
	display: none;
}

.sspa-auth-message {
	margin: 48px auto;
	text-align: center;
}

.sspa-standalone-auth .sspa-modal {
	position: static;
	inset: auto;
	display: grid;
	padding: 0;
	width: 100%;
}

.sspa-standalone-auth .sspa-modal[aria-hidden="true"] {
	display: grid;
}

.sspa-standalone-auth .sspa-modal__overlay,
.sspa-standalone-auth .sspa-modal__close {
	display: none;
}

.sspa-standalone-auth .sspa-modal__dialog {
	max-height: none;
}

.sspa-standalone-auth .sspa-auth {
	width: min(1120px, calc(100vw - 32px));
}

.sspa-lost-wrap {
	width: min(620px, calc(100% - 32px));
	margin: 60px auto;
	padding: 44px;
	background: #fff;
	border: 1px solid var(--sspa-line);
	border-radius: 8px;
	box-shadow: var(--sspa-shadow);
	text-align: center;
}

.sspa-lost-wrap h1 {
	margin: 0 0 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 38px;
	color: var(--sspa-dark);
}

.sspa-lost-wrap form {
	text-align: left;
}

.sspa-lost-wrap input[type="text"],
.sspa-lost-wrap input[type="email"],
.sspa-lost-wrap input[type="password"] {
	width: 100%;
	min-height: 50px;
	border: 1px solid #d8d8d8;
	border-radius: 12px;
	padding: 0 14px;
}

.sspa-lost-wrap button,
.sspa-lost-wrap .button {
	min-height: 48px;
	border-radius: 12px;
	background: var(--sspa-dark);
	color: #f4cd79;
	border: 0;
	padding: 0 24px;
	font-weight: 800;
}

@media (max-width: 1024px) {
	.sspa-account__body {
		grid-template-columns: 1fr;
	}

	.sspa-sidebar {
		position: static;
	}

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

	.sspa-stat-grid,
	.sspa-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sspa-auth {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.sspa-auth__image {
		min-height: 280px;
		border-radius: 0;
		order: -1;
	}
}

@media (max-width: 700px) {
	.sspa-hero {
		min-height: 210px;
	}

	.sspa-account__body {
		width: min(100% - 20px, 1520px);
		margin-top: 16px;
	}

	.sspa-nav,
	.sspa-stat-grid,
	.sspa-trust,
	.sspa-welcome-card,
	.sspa-empty,
	.sspa-order-row {
		grid-template-columns: 1fr;
	}

	.sspa-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.sspa-bag-art {
		display: none;
	}

	.sspa-stat-card {
		grid-template-columns: 54px 1fr;
	}

	.sspa-empty {
		text-align: center;
		justify-items: center;
	}

	.sspa-trust div {
		border-right: 0;
	}

	.sspa-modal {
		padding: 12px;
	}

	.sspa-auth {
		border-radius: 28px;
	}

	.sspa-auth__panel {
		padding: 34px 22px;
	}

	.sspa-auth__image {
		min-height: 210px;
	}

	.sspa-modal__close {
		right: 14px;
		top: 14px;
	}

	.sspa-auth__row {
		align-items: flex-start;
		flex-direction: column;
	}

	.sspa-lost-wrap {
		padding: 30px 20px;
	}
}
