/* =========================================================================
   Handaran — Custom My Account
   All rules scoped under #hnd-account-root. Tokens declared on the root and
   used via var() that are themselves scoped (never inherited from theme).
   ========================================================================= */

#hnd-account-root {
	--hnd-bg: #1A0C05;
	--hnd-surface: rgba(255, 248, 235, 0.05);
	--hnd-surface-hover: rgba(255, 248, 235, 0.10);
	--hnd-surface-2: rgba(26, 15, 7, 0.82);
	--hnd-border: rgba(232, 162, 60, 0.10);
	--hnd-border-mid: rgba(232, 162, 60, 0.18);
	--hnd-border-active: rgba(232, 162, 60, 0.50);
	--hnd-border-hover: rgba(232, 162, 60, 0.30);
	--hnd-amber: #E8A23C;
	--hnd-amber-dark: #C4682A;
	--hnd-cream: #FDF4E3;
	--hnd-cream-muted: rgba(253, 244, 227, 0.55);
	--hnd-cream-faint: rgba(253, 244, 227, 0.25);
	--hnd-dark-surface: #2C1A0E;
	--hnd-green: #4ADE80;
	--hnd-ease: cubic-bezier(0.22, 1, 0.36, 1);

	display: block;
	box-sizing: border-box;
	min-height: 100vh;
	width: 100%;
	margin: 0;
	padding: 3.5rem 1.5rem 5rem;
	background: var(--hnd-bg);
	color: var(--hnd-cream);
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

#hnd-account-root *,
#hnd-account-root *::before,
#hnd-account-root *::after {
	box-sizing: border-box;
}

/* Belt-and-braces: theme bg behind the root */
body.has-hnd-nav:has(#hnd-account-root) { background: #1A0C05; }

#hnd-account-root .hnd-shell {
	max-width: 960px;
	margin: 0 auto;
	width: 100%;
}
#hnd-account-root .hnd-shell--narrow { max-width: 460px; }

/* ---------- Scoped scrollbar ---------- */
#hnd-account-root *::-webkit-scrollbar { width: 5px; height: 5px; }
#hnd-account-root *::-webkit-scrollbar-track { background: #1A0C05; }
#hnd-account-root *::-webkit-scrollbar-thumb { background: #E8A23C; border-radius: 3px; }

/* ---------- Typography primitives ---------- */
#hnd-account-root .hnd-label {
	display: block;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #E8A23C;
	margin: 0 0 6px;
}

#hnd-account-root h1,
#hnd-account-root h2,
#hnd-account-root h3 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #FDF4E3;
	margin: 0;
	font-weight: 700;
	line-height: 1.15;
}

/* ---------- Buttons ---------- */
#hnd-account-root .hnd-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	border: none;
	border-radius: 9999px;
	padding: 12px 24px;
	min-height: 44px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	will-change: transform;
	transition: all 0.3s var(--hnd-ease);
	-webkit-appearance: none;
	appearance: none;
}
#hnd-account-root .hnd-btn--primary {
	background: linear-gradient(135deg, #E8A23C, #C4682A);
	color: #2C1A0E;
}
#hnd-account-root .hnd-btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-18deg);
	transition: left 0.6s var(--hnd-ease);
	pointer-events: none;
}
#hnd-account-root .hnd-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(232, 162, 60, 0.42);
}
#hnd-account-root .hnd-btn--primary:hover::after { left: 130%; }

#hnd-account-root .hnd-btn--outline {
	background: transparent;
	border: 1.5px solid rgba(253, 244, 227, 0.25);
	color: #FDF4E3;
}
#hnd-account-root .hnd-btn--outline:hover {
	border-color: rgba(232, 162, 60, 0.6);
	color: #E8A23C;
	transform: translateY(-2px);
}

#hnd-account-root .hnd-btn--danger {
	background: rgba(220, 38, 38, 0.12);
	border: 1px solid rgba(220, 38, 38, 0.25);
	color: #f87171;
}
#hnd-account-root .hnd-btn--danger:hover {
	background: rgba(220, 38, 38, 0.2);
	transform: translateY(-2px);
}

#hnd-account-root .hnd-btn--mini {
	min-height: 36px;
	padding: 8px 16px;
	font-size: 0.8rem;
	background: transparent;
	border: 1.5px solid rgba(253, 244, 227, 0.25);
	color: #FDF4E3;
}
#hnd-account-root .hnd-btn--mini:hover {
	border-color: rgba(232, 162, 60, 0.6);
	color: #E8A23C;
}

#hnd-account-root .hnd-link {
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--hnd-cream-muted);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 4px 6px;
	transition: color 0.3s ease;
}
#hnd-account-root .hnd-link:hover { color: #E8A23C; }

#hnd-account-root .hnd-icon-btn {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 248, 235, 0.05);
	border: 1px solid var(--hnd-border-mid);
	color: var(--hnd-cream-muted);
	cursor: pointer;
	transition: all 0.3s var(--hnd-ease);
}
#hnd-account-root .hnd-icon-btn:hover {
	color: #E8A23C;
	border-color: var(--hnd-border-active);
	transform: translateY(-2px);
}

/* ---------- Cards ---------- */
#hnd-account-root .hnd-card {
	position: relative;
	background: rgba(255, 248, 235, 0.05);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 0.8px solid rgba(232, 162, 60, 0.10);
	border-radius: 1.5rem;
	padding: 1.75rem;
	overflow: hidden;
	transition: all 0.3s var(--hnd-ease);
}
#hnd-account-root .hnd-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(232, 162, 60, 0.6), transparent);
	transform: scaleX(0);
	transition: transform 0.4s var(--hnd-ease);
}
#hnd-account-root .hnd-card:hover {
	border-color: rgba(232, 162, 60, 0.30);
	background: rgba(255, 248, 235, 0.06);
}
#hnd-account-root .hnd-card:hover::before { transform: scaleX(1); }
#hnd-account-root .hnd-card--narrow { max-width: 460px; }

/* ---------- Profile hero ---------- */
#hnd-account-root .hnd-hero {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: rgba(255, 248, 235, 0.05);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 0.8px solid rgba(232, 162, 60, 0.10);
	border-radius: 1.5rem;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.5rem;
}
#hnd-account-root .hnd-hero-avatar {
	position: relative;
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 50%;
	cursor: pointer;
	outline: none;
}
#hnd-account-root .hnd-hero-avatar--lg { width: 120px; height: 120px; }
#hnd-account-root .hnd-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid var(--hnd-border-mid);
	display: block;
}
#hnd-account-root .hnd-avatar-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(26, 12, 5, 0.55);
	color: #E8A23C;
	font-size: 1.25rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}
#hnd-account-root .hnd-hero-avatar:hover .hnd-avatar-overlay,
#hnd-account-root .hnd-hero-avatar:focus-visible .hnd-avatar-overlay { opacity: 1; }
#hnd-account-root .hnd-hero-avatar:focus-visible {
	outline: 2px solid rgba(232, 162, 60, 0.6);
	outline-offset: 3px;
}
/* Persistent "change photo" badge */
#hnd-account-root .hnd-avatar-badge {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #E8A23C, #C4682A);
	color: #2C1A0E;
	font-size: 0.8rem;
	border: 2px solid #1A0C05;
	box-shadow: 0 4px 12px rgba(232, 162, 60, 0.42);
	pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 2;
}
#hnd-account-root .hnd-hero-avatar--lg .hnd-avatar-badge {
	width: 38px;
	height: 38px;
	font-size: 0.95rem;
}
#hnd-account-root .hnd-hero-avatar:hover .hnd-avatar-badge,
#hnd-account-root .hnd-hero-avatar:focus-visible .hnd-avatar-badge { transform: scale(1.1); }
#hnd-account-root .hnd-hero-avatar.is-uploading .hnd-avatar-badge { opacity: 0; }
/* Upload progress ring */
#hnd-account-root .hnd-avatar-ring {
	position: absolute;
	inset: -4px;
	width: calc(100% + 8px);
	height: calc(100% + 8px);
	transform: rotate(-90deg);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
#hnd-account-root .hnd-hero-avatar.is-uploading .hnd-avatar-ring { opacity: 1; }
#hnd-account-root .hnd-hero-avatar.is-uploading .hnd-avatar-overlay { opacity: 1; }
#hnd-account-root .hnd-ring-track { fill: none; stroke: rgba(232, 162, 60, 0.15); stroke-width: 4; }
#hnd-account-root .hnd-ring-bar {
	fill: none;
	stroke: #E8A23C;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 289;
	stroke-dashoffset: 289;
	transition: stroke-dashoffset 0.3s linear;
}

#hnd-account-root .hnd-hero-meta { flex: 1 1 auto; min-width: 0; }
#hnd-account-root .hnd-hero-name { font-size: 1.5rem; }
#hnd-account-root .hnd-hero-email {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--hnd-cream-muted);
	word-break: break-word;
}
#hnd-account-root .hnd-hero-actions { flex-shrink: 0; }

/* ---------- Status pills ---------- */
#hnd-account-root .hnd-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 5px 12px;
	border-radius: 9999px;
	white-space: nowrap;
}
#hnd-account-root .hnd-pill--member {
	margin-top: 10px;
	background: rgba(232, 162, 60, 0.12);
	border: 1px solid rgba(232, 162, 60, 0.30);
	color: #E8A23C;
}
#hnd-account-root .hnd-pill--pending {
	background: rgba(232, 162, 60, 0.18);
	color: #E8A23C;
	border: 1px solid rgba(232, 162, 60, 0.30);
}
#hnd-account-root .hnd-pill--processing {
	background: rgba(59, 130, 246, 0.2);
	color: #93c5fd;
	border: 1px solid rgba(59, 130, 246, 0.35);
}
#hnd-account-root .hnd-pill--completed {
	background: rgba(74, 222, 128, 0.16);
	color: #4ADE80;
	border: 1px solid rgba(74, 222, 128, 0.32);
}
#hnd-account-root .hnd-pill--cancelled {
	background: rgba(220, 38, 38, 0.16);
	color: #f87171;
	border: 1px solid rgba(220, 38, 38, 0.32);
}

/* ---------- Tabs ---------- */
#hnd-account-root .hnd-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 0.4rem;
	background: rgba(255, 248, 235, 0.05);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 0.8px solid rgba(232, 162, 60, 0.10);
	border-radius: 9999px;
	overflow-x: auto;
	scrollbar-width: none;
}
#hnd-account-root .hnd-tabs::-webkit-scrollbar { display: none; }
#hnd-account-root .hnd-tab {
	flex: 1 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hnd-cream);
	background: transparent;
	border: none;
	border-radius: 9999px;
	padding: 10px 18px;
	min-height: 44px;
	cursor: pointer;
	white-space: nowrap;
	will-change: transform;
	transition: all 0.3s var(--hnd-ease);
}
#hnd-account-root .hnd-tab i { font-size: 0.9rem; }
#hnd-account-root .hnd-tab:hover { transform: translateY(-2px); color: #E8A23C; }
#hnd-account-root .hnd-tab.is-active {
	background: linear-gradient(135deg, #E8A23C, #C4682A);
	color: #2C1A0E;
}
#hnd-account-root .hnd-tab.is-active:hover { color: #2C1A0E; }

/* ---------- Panels ---------- */
#hnd-account-root .hnd-panel { display: none; }
#hnd-account-root .hnd-panel.is-active {
	display: block;
	animation: hnd-panel-in 0.4s var(--hnd-ease);
}
@keyframes hnd-panel-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
#hnd-account-root .hnd-panel-head { margin-bottom: 1.25rem; }
#hnd-account-root .hnd-panel-title { font-size: 1.6rem; }

/* ---------- Dashboard ---------- */
#hnd-account-root .hnd-welcome { margin-bottom: 1.5rem; }
#hnd-account-root .hnd-welcome-title { font-size: 2rem; margin-bottom: 0.4rem; }
#hnd-account-root .hnd-welcome-sub { color: var(--hnd-cream-muted); font-size: 0.95rem; margin: 0; max-width: 60ch; }

/* ---------- Contact support (dashboard) ---------- */
#hnd-account-root .hnd-support {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	margin-top: 1.5rem;
}
#hnd-account-root .hnd-support-icon {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	background: rgba(232, 162, 60, 0.12);
	color: #E8A23C;
	font-size: 1.4rem;
}
#hnd-account-root .hnd-support-text { flex: 1 1 auto; min-width: 0; }
#hnd-account-root .hnd-support-title { font-size: 1.25rem; margin: 0.25rem 0; }
#hnd-account-root .hnd-support-sub {
	margin: 0;
	font-size: 0.875rem;
	color: var(--hnd-cream-muted);
	line-height: 1.6;
}
#hnd-account-root .hnd-support-actions {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
	flex-wrap: wrap;
}

/* ---------- Shop CTA (sitewide, below panels) ---------- */
#hnd-account-root .hnd-cta {
	margin-top: 2rem;
	padding: 3rem 2rem;
	text-align: center;
	border-radius: 1.5rem;
	border: 0.8px solid rgba(232, 162, 60, 0.18);
	background:
		radial-gradient(120% 140% at 50% 0%, rgba(232, 162, 60, 0.14), transparent 60%),
		rgba(255, 248, 235, 0.05);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
#hnd-account-root .hnd-cta-title {
	font-size: 2rem;
	margin: 0.5rem 0;
	max-width: 22ch;
	margin-left: auto;
	margin-right: auto;
}
#hnd-account-root .hnd-cta-sub {
	margin: 0 auto 1.5rem;
	max-width: 48ch;
	color: var(--hnd-cream-muted);
	font-size: 0.95rem;
}
#hnd-account-root .hnd-cta-btn { font-size: 0.95rem; padding: 12px 32px; }

/* ---------- Feedback / reviews ---------- */
#hnd-account-root .hnd-feedback { margin-top: 1.5rem; padding: 1.75rem; }
#hnd-account-root .hnd-feedback-title { font-size: 1.35rem; margin: 0.25rem 0 0.4rem; }
#hnd-account-root .hnd-feedback-sub {
	margin: 0 0 1.25rem;
	color: var(--hnd-cream-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	max-width: 56ch;
}
#hnd-account-root .hnd-stars {
	display: inline-flex;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}
#hnd-account-root .hnd-star {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	padding: 4px;
	margin: 0;
	cursor: pointer;
	font-size: 1.6rem;
	line-height: 1;
	color: rgba(253, 244, 227, 0.22);
	transition: color 0.2s ease, transform 0.2s var(--hnd-ease);
}
#hnd-account-root .hnd-star:hover { transform: scale(1.15); }
#hnd-account-root .hnd-star.is-on { color: #E8A23C; }
#hnd-account-root .hnd-star:focus-visible {
	outline: 2px solid rgba(232, 162, 60, 0.6);
	outline-offset: 2px;
	border-radius: 6px;
}
#hnd-account-root .hnd-feedback-done {
	text-align: center;
	padding: 1.5rem 1rem;
}
#hnd-account-root .hnd-feedback-done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(232, 162, 60, 0.12);
	color: #E8A23C;
	font-size: 1.4rem;
	margin-bottom: 0.75rem;
	animation: hnd-pop-in 0.45s var(--hnd-ease);
}
@keyframes hnd-pop-in {
	from { opacity: 0; transform: scale(0.6); }
	to { opacity: 1; transform: scale(1); }
}

#hnd-account-root .hnd-recent-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
#hnd-account-root .hnd-recent-head .hnd-label { margin: 0; }
#hnd-account-root .hnd-recent-list { display: flex; flex-direction: column; gap: 0.5rem; }
#hnd-account-root .hnd-recent-row {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 1rem;
	background: rgba(255, 248, 235, 0.04);
	border: 0.8px solid var(--hnd-border);
	transition: all 0.3s var(--hnd-ease);
}
#hnd-account-root .hnd-recent-row:hover {
	background: rgba(255, 248, 235, 0.07);
	border-color: var(--hnd-border-hover);
}
#hnd-account-root .hnd-recent-id { font-weight: 700; color: #E8A23C; }
#hnd-account-root .hnd-recent-date { font-size: 0.82rem; color: var(--hnd-cream-muted); }
#hnd-account-root .hnd-recent-total { font-weight: 700; color: #FDF4E3; }

/* ---------- Orders ---------- */
#hnd-account-root .hnd-orders-list { display: flex; flex-direction: column; gap: 1rem; }
#hnd-account-root .hnd-order-card { padding: 1.5rem; }
#hnd-account-root .hnd-order-top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
#hnd-account-root .hnd-order-num { font-weight: 700; color: #E8A23C; font-size: 1rem; }
#hnd-account-root .hnd-order-date { font-size: 0.82rem; color: var(--hnd-cream-muted); }
#hnd-account-root .hnd-order-top .hnd-pill { margin-left: auto; }
#hnd-account-root .hnd-order-items {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
#hnd-account-root .hnd-order-items li {
	font-size: 0.875rem;
	color: var(--hnd-cream-muted);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
#hnd-account-root .hnd-order-items li span:first-child { color: var(--hnd-cream); }
#hnd-account-root .hnd-order-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hnd-border);
}
#hnd-account-root .hnd-order-total { font-weight: 700; font-size: 1.05rem; color: #FDF4E3; }

/* Skeleton */
#hnd-account-root .hnd-skel { padding: 1.5rem; }
#hnd-account-root .hnd-skel-line {
	height: 14px;
	border-radius: 7px;
	margin-bottom: 12px;
	background: linear-gradient(90deg, rgba(255, 248, 235, 0.04) 25%, rgba(232, 162, 60, 0.08) 50%, rgba(255, 248, 235, 0.04) 75%);
	background-size: 200% 100%;
	animation: hnd-shimmer 1.5s infinite;
}
#hnd-account-root .hnd-skel-line.w40 { width: 40%; }
#hnd-account-root .hnd-skel-line.w55 { width: 55%; }
#hnd-account-root .hnd-skel-line.w70 { width: 70%; }
@keyframes hnd-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ---------- Empty states ---------- */
#hnd-account-root .hnd-empty {
	text-align: center;
	padding: 2.5rem 1rem;
	color: var(--hnd-cream-muted);
}
#hnd-account-root .hnd-empty i { font-size: 2rem; color: #E8A23C; opacity: 0.7; margin-bottom: 0.75rem; display: block; }
#hnd-account-root .hnd-empty p { margin: 0; font-size: 0.9rem; }

/* ---------- Addresses ---------- */
#hnd-account-root .hnd-addr-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}
#hnd-account-root .hnd-addr-card { min-height: 240px; }
#hnd-account-root .hnd-addr-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}
#hnd-account-root .hnd-addr-title { font-size: 1.2rem; }
#hnd-account-root .hnd-addr-body {
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--hnd-cream-muted);
}
#hnd-account-root .hnd-addr-body strong { color: #FDF4E3; font-weight: 600; }
#hnd-account-root .hnd-addr-phone { display: inline-flex; align-items: center; gap: 0.4rem; }
#hnd-account-root .hnd-addr-phone i { color: #E8A23C; font-size: 0.8rem; }
#hnd-account-root .hnd-addr-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	min-height: 120px;
	border: 1.5px dashed var(--hnd-border-mid);
	border-radius: 1rem;
	background: transparent;
	color: var(--hnd-cream-muted);
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.3s var(--hnd-ease);
}
#hnd-account-root .hnd-addr-empty:hover {
	border-color: var(--hnd-border-active);
	color: #E8A23C;
}
#hnd-account-root .hnd-addr-plus {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(232, 162, 60, 0.12);
	color: #E8A23C;
	font-size: 1.1rem;
}
#hnd-account-root .hnd-addr-edit { animation: hnd-panel-in 0.35s var(--hnd-ease); }
#hnd-account-root .hnd-addr-view.is-fading { animation: hnd-fade-out 0.25s var(--hnd-ease) forwards; }
@keyframes hnd-fade-out { to { opacity: 0; transform: translateY(-6px); } }
#hnd-account-root .hnd-addr-form-head { margin-bottom: 1rem; }

/* ---------- Forms ---------- */
#hnd-account-root .hnd-form { display: block; }
#hnd-account-root .hnd-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}
#hnd-account-root .hnd-field { margin-bottom: 1rem; }
#hnd-account-root .hnd-field-label {
	display: block;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(253, 244, 227, 0.55);
	margin-bottom: 6px;
}
#hnd-account-root .hnd-input {
	display: block;
	width: 100%;
	font-family: 'Inter','Inter Fallback', sans-serif;
	font-size: 0.875rem;
	color: #FDF4E3;
	background: rgba(255, 248, 235, 0.07);
	border: 1px solid rgba(232, 162, 60, 0.18);
	border-radius: 0.875rem;
	padding: 0.75rem 1rem;
	min-height: 44px;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.3s ease;
}
#hnd-account-root .hnd-input::placeholder { color: rgba(253, 244, 227, 0.30); }
#hnd-account-root .hnd-input:focus {
	background: rgba(255, 248, 235, 0.11);
	border-color: rgba(232, 162, 60, 0.50);
	outline: none;
}
#hnd-account-root .hnd-input:focus-visible {
	outline: 2px solid rgba(232, 162, 60, 0.6);
	outline-offset: 3px;
}
#hnd-account-root .hnd-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* Custom select */
#hnd-account-root .hnd-select-wrap { position: relative; }
#hnd-account-root .hnd-select {
	padding-right: 2.75rem;
	cursor: pointer;
	background-image: none;
}
#hnd-account-root .hnd-select option { background: #2C1A0E; color: #FDF4E3; }
#hnd-account-root .hnd-select-arrow {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #E8A23C;
	font-size: 0.8rem;
	pointer-events: none;
}

/* Password */
#hnd-account-root .hnd-pw-wrap { position: relative; }
#hnd-account-root .hnd-pw-wrap .hnd-input { padding-right: 3rem; }
#hnd-account-root .hnd-pw-toggle {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--hnd-cream-faint);
	cursor: pointer;
	transition: color 0.3s ease;
}
#hnd-account-root .hnd-pw-toggle:hover { color: #E8A23C; }

#hnd-account-root .hnd-strength { margin: -0.25rem 0 1rem; }
#hnd-account-root .hnd-strength-bar {
	height: 6px;
	border-radius: 9999px;
	background: rgba(255, 248, 235, 0.08);
	overflow: hidden;
}
#hnd-account-root .hnd-strength-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 9999px;
	background: #E8A23C;
	transition: width 0.35s var(--hnd-ease), background 0.35s ease;
}
#hnd-account-root .hnd-strength-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	margin-top: 6px;
	color: var(--hnd-cream-muted);
}
#hnd-account-root .hnd-strength[data-level="1"] .hnd-strength-fill { width: 25%; background: #f87171; }
#hnd-account-root .hnd-strength[data-level="2"] .hnd-strength-fill { width: 50%; background: #E8A23C; }
#hnd-account-root .hnd-strength[data-level="3"] .hnd-strength-fill { width: 75%; background: #fbbf24; }
#hnd-account-root .hnd-strength[data-level="4"] .hnd-strength-fill { width: 100%; background: #4ADE80; }

#hnd-account-root .hnd-form-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
#hnd-account-root .hnd-form-error {
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	color: #f87171;
}

/* ---------- Account avatar block ---------- */
#hnd-account-root .hnd-account-avatar {
	display: flex;
	justify-content: center;
	margin-bottom: 1.75rem;
}

/* ---------- Divider ---------- */
#hnd-account-root .hnd-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(232, 162, 60, 0.25), transparent);
	margin: 1.25rem 0;
}

/* ---------- Login ---------- */
#hnd-account-root .hnd-login { text-align: center; padding: 2.5rem 2rem; }
#hnd-account-root .hnd-login .hnd-form { text-align: left; margin-top: 1.5rem; }
#hnd-account-root .hnd-login .hnd-form-actions { justify-content: stretch; }
#hnd-account-root .hnd-login .hnd-btn { flex: 1; }

/* ---------- Toasts ---------- */
#hnd-toasts {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: calc(100vw - 48px);
	font-family: 'Inter','Inter Fallback', sans-serif;
}
#hnd-toasts .hnd-toast {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	position: relative;
	background: rgba(26, 15, 7, 0.92);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border: 0.8px solid rgba(232, 162, 60, 0.22);
	border-radius: 1rem;
	padding: 14px 20px 14px 24px;
	color: #FDF4E3;
	font-size: 0.875rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	transform: translateX(120%);
	transition: transform 0.45s var(--hnd-ease), opacity 0.4s ease;
}
#hnd-toasts .hnd-toast.is-in { transform: translateX(0); }
#hnd-toasts .hnd-toast.is-out { transform: translateX(120%); opacity: 0; }
#hnd-toasts .hnd-toast::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
}
#hnd-toasts .hnd-toast--success::before { background: #E8A23C; }
#hnd-toasts .hnd-toast--error::before { background: #dc2626; }
#hnd-toasts .hnd-toast-icon { font-size: 1rem; flex-shrink: 0; }
#hnd-toasts .hnd-toast--success .hnd-toast-icon { color: #E8A23C; }
#hnd-toasts .hnd-toast--error .hnd-toast-icon { color: #f87171; }

/* ---------- Order modal ---------- */
#hnd-account-root .hnd-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: none;
}
#hnd-account-root .hnd-modal.is-open { display: block; }
#hnd-account-root .hnd-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 5, 2, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.35s ease;
}
#hnd-account-root .hnd-modal.is-open .hnd-modal-backdrop { opacity: 1; }
#hnd-account-root .hnd-modal-sheet {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 100%);
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow-y: auto;
	background: rgba(26, 15, 7, 0.96);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	border: 0.8px solid rgba(232, 162, 60, 0.22);
	border-radius: 1.5rem 1.5rem 0 0;
	padding: 2rem;
	transition: transform 0.45s var(--hnd-ease);
}
#hnd-account-root .hnd-modal.is-open .hnd-modal-sheet { transform: translate(-50%, 0); }
#hnd-account-root .hnd-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 248, 235, 0.06);
	border: 1px solid var(--hnd-border-mid);
	color: var(--hnd-cream-muted);
	cursor: pointer;
	transition: all 0.3s ease;
}
#hnd-account-root .hnd-modal-close:hover { color: #E8A23C; border-color: var(--hnd-border-active); }
#hnd-account-root .hnd-modal-title { font-size: 1.5rem; margin-bottom: 0.25rem; }
#hnd-account-root .hnd-modal-sub { color: var(--hnd-cream-muted); font-size: 0.85rem; margin: 0 0 1.25rem; }
#hnd-account-root .hnd-modal-items { list-style: none; margin: 0 0 1.25rem; padding: 0; }
#hnd-account-root .hnd-modal-items li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--hnd-border);
	font-size: 0.9rem;
}
#hnd-account-root .hnd-modal-items .hnd-mi-name { color: #FDF4E3; }
#hnd-account-root .hnd-modal-items .hnd-mi-qty { color: var(--hnd-cream-faint); margin-left: 0.4rem; }
#hnd-account-root .hnd-modal-items .hnd-mi-total { color: var(--hnd-cream-muted); white-space: nowrap; }
#hnd-account-root .hnd-modal-totals { margin-bottom: 1.25rem; }
#hnd-account-root .hnd-modal-totals .hnd-tr {
	display: flex;
	justify-content: space-between;
	padding: 0.35rem 0;
	font-size: 0.9rem;
	color: var(--hnd-cream-muted);
}
#hnd-account-root .hnd-modal-totals .hnd-tr--grand {
	border-top: 1px solid var(--hnd-border);
	margin-top: 0.4rem;
	padding-top: 0.75rem;
	color: #FDF4E3;
	font-weight: 700;
	font-size: 1.05rem;
}
#hnd-account-root .hnd-modal-billing {
	font-size: 0.85rem;
	color: var(--hnd-cream-muted);
	line-height: 1.7;
	white-space: pre-line;
}

/* ---------- Reveal animation ---------- */
#hnd-account-root .hnd-reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
#hnd-account-root .hnd-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	#hnd-account-root { padding: 2rem 1rem 4rem; }
	#hnd-account-root .hnd-hero {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	#hnd-account-root .hnd-hero-actions { width: 100%; }
	#hnd-account-root .hnd-hero-actions .hnd-btn { width: 100%; }
	#hnd-account-root .hnd-tab span { display: none; }
	#hnd-account-root .hnd-tab { flex: 1 0 auto; padding: 10px 16px; }
	#hnd-account-root .hnd-tab i { font-size: 1.05rem; }
	#hnd-account-root .hnd-grid-2 { grid-template-columns: 1fr; }
	#hnd-account-root .hnd-support { flex-direction: column; text-align: center; }
	#hnd-account-root .hnd-support-actions { width: 100%; justify-content: center; }
	#hnd-account-root .hnd-cta-title { font-size: 1.6rem; }
	#hnd-account-root .hnd-addr-grid { grid-template-columns: 1fr; }
	#hnd-account-root .hnd-recent-row {
		grid-template-columns: 1fr auto;
		gap: 0.5rem 0.75rem;
	}
	#hnd-account-root .hnd-recent-date { grid-column: 1; }
	#hnd-account-root .hnd-recent-act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	#hnd-account-root .hnd-modal-sheet { padding: 1.5rem; }
	#hnd-toasts { left: 16px; right: 16px; bottom: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	#hnd-account-root .hnd-reveal { opacity: 1; transform: none; transition: none; }
	#hnd-account-root *, #hnd-account-root *::before, #hnd-account-root *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
