/* Hypezo marketplace UI. Light by default; every surface/text color is a variable so a theme
   (like the Hypezo theme's dark glass look) can restyle it without overriding components. */
.hz {
	--hz-pink: #FF2E7E;
	--hz-accent-rgb: 255, 46, 126;
	--hz-pink-dark: #D6125E;
	--hz-link: #D6125E;
	--hz-on-accent: #17101F;
	--hz-text: #17101F;
	--hz-text-2: #2F2838;
	--hz-muted: #5B5566;
	--hz-line: #E7E2EC;
	--hz-soft: #F6F4F8;
	--hz-card: #FFFFFF;
	--hz-card-border: var(--hz-line);
	--hz-input: #FFFFFF;
	--hz-input-border: var(--hz-line);
	--hz-strong: #17101F;
	--hz-strong-text: #FFFFFF;
	--hz-tag: #F6F4F8;
	--hz-blush: #FFE4EF;
	--hz-blur: none;
	--hz-shadow: 0 10px 30px rgba(23, 16, 31, .08);
	--hz-green: #0F7B4E; --hz-green-bg: #E3F6EC;
	--hz-amber: #8A5A00; --hz-amber-bg: #FFF3D6;
	--hz-red: #B42318;   --hz-red-bg: #FDE8E7;
	--hz-blue: #1E4FB8;  --hz-blue-bg: #E6EEFF;
	--hz-radius: 18px;
	color: var(--hz-text);
	font-size: 16px;
	line-height: 1.55;
}
.hz *, .hz *::before, .hz *::after { box-sizing: border-box; }
.hz h1, .hz h2, .hz h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--hz-text); }
.hz h2 { font-size: 1.25rem; }
.hz h3 { font-size: 1.05rem; }
.hz p { margin: 0 0 1em; }
.hz a { color: var(--hz-link); }
.hz abbr[title] { text-decoration: none; border: 0; cursor: help; }
.hz-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }
.hz-h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.hz-h1-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hz-h1-row .hz-h1 { margin: 0; }
.hz-muted { color: var(--hz-muted); }
.hz-small { font-size: .875rem; }
.hz-center { text-align: center; }
.hz-req { color: var(--hz-red); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Surfaces */
.hz-card, .hz-filters, .hz-ccard, .hz-package, .hz-review, .hz-stat, .hz-dash__nav, .hz-inbox__list {
	background: var(--hz-card);
	border: 1px solid var(--hz-card-border);
	-webkit-backdrop-filter: var(--hz-blur);
	backdrop-filter: var(--hz-blur);
}

/* Buttons */
.hz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px;
	border: 1.5px solid var(--hz-text); background: transparent; color: var(--hz-text);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.hz a.hz-btn { color: var(--hz-text); }
.hz-btn:hover { background: var(--hz-soft); }
.hz-btn:active { transform: translateY(1px); }
.hz-btn:focus-visible, .hz a:focus-visible, .hz input:focus-visible, .hz select:focus-visible, .hz textarea:focus-visible, .hz summary:focus-visible { outline: 3px solid var(--hz-pink); outline-offset: 2px; }
.hz-btn--primary, .hz a.hz-btn--primary { background: var(--hz-pink); border-color: var(--hz-pink); color: var(--hz-on-accent); }
.hz-btn--primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px -8px rgba(var(--hz-accent-rgb), .6); }
.hz-btn--ghost { border-color: var(--hz-line); }
.hz-btn--danger, .hz a.hz-btn--danger { border-color: var(--hz-red); color: var(--hz-red); }
.hz-btn--danger:hover { background: var(--hz-red-bg); }
.hz-btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.hz-btn--block { width: 100%; }
.hz-btn[disabled] { opacity: .6; cursor: progress; }

/* Cards, notices, badges */
.hz-card { border-radius: var(--hz-radius); padding: 24px; margin-bottom: 20px; }
.hz-empty { text-align: center; padding: 40px 24px; }
.hz-notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.hz-notice--success { background: var(--hz-green-bg); color: var(--hz-green); }
.hz-notice--error { background: var(--hz-red-bg); color: var(--hz-red); }
.hz-notice--info { background: var(--hz-blue-bg); color: var(--hz-blue); }
.hz-notice a { color: inherit; font-weight: 700; }
.hz-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--hz-blush); color: #17101F; font-size: .75rem; font-weight: 600; vertical-align: middle; }
.hz-badge--verified { background: var(--hz-strong); color: var(--hz-strong-text); }
.hz-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hz-pink); color: #17101F; font-size: .75rem; font-weight: 700; align-items: center; justify-content: center; }
.hz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.hz-tag { background: var(--hz-tag); border-radius: 999px; padding: 2px 10px; font-size: .8rem; color: var(--hz-text-2); }
.hz-verified { color: var(--hz-link); display: inline-flex; vertical-align: -2px; }

.hz-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--hz-tag); color: var(--hz-text-2); }
.hz-status--paid, .hz-status--in_progress, .hz-status--revision_requested { background: var(--hz-blue-bg); color: var(--hz-blue); }
.hz-status--draft_submitted, .hz-status--approved, .hz-status--pending_payment { background: var(--hz-amber-bg); color: var(--hz-amber); }
.hz-status--completed { background: var(--hz-green-bg); color: var(--hz-green); }
.hz-status--disputed, .hz-status--refunded { background: var(--hz-red-bg); color: var(--hz-red); }

/* Forms */
.hz-form { display: flex; flex-direction: column; gap: 16px; }
.hz-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.hz-field label, .hz-field legend, .hz-filters label > span { font-weight: 600; font-size: .9rem; color: var(--hz-text); }
.hz-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hz input[type=text], .hz input[type=email], .hz input[type=password], .hz input[type=tel], .hz input[type=url], .hz input[type=number], .hz input[type=date], .hz input[type=search], .hz input[type=file], .hz select, .hz textarea {
	width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--hz-input-border); border-radius: 12px; background: var(--hz-input); color: var(--hz-text); font: inherit;
}
.hz input::placeholder, .hz textarea::placeholder { color: var(--hz-muted); opacity: 1; }
.hz select option { background: #FFFFFF; color: #17101F; }
.hz textarea { resize: vertical; }
.hz input:disabled { opacity: .7; }
.hz-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.hz-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--hz-pink); flex: none; }
.hz-hp { position: absolute; left: -9999px; }
.hz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hz-chip { position: relative; }
.hz-chip input { position: absolute; opacity: 0; }
.hz-chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--hz-input-border); border-radius: 999px; cursor: pointer; font-size: .9rem; transition: background-color .15s, color .15s; }
.hz-chip input:checked + span { background: var(--hz-pink); border-color: var(--hz-pink); color: #17101F; }
.hz-chip input:focus-visible + span { outline: 3px solid var(--hz-pink); outline-offset: 2px; }
.hz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.hz-actions .hz-form { display: inline-flex; }
.hz-details > summary { list-style: none; cursor: pointer; }
.hz-details > summary::-webkit-details-marker { display: none; }
.hz-details[open] > summary { margin-bottom: 12px; }
.hz-card.hz-details > summary { font-weight: 600; }
.hz-inline-form { margin-bottom: 16px; }
.hz-avatar-row { display: flex; gap: 16px; align-items: center; }
.hz-avatar-row img { border-radius: 50%; object-fit: cover; }
.hz-rating { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.hz-rating legend { font-weight: 600; margin-bottom: 4px; width: 100%; }
.hz-rating input { position: absolute; opacity: 0; }
.hz-rating label { font-size: 2rem; line-height: 1; color: var(--hz-line); cursor: pointer; }
.hz-rating input:checked ~ label, .hz-rating label:hover, .hz-rating label:hover ~ label { color: var(--hz-pink); }
.hz-rating input:focus-visible + label { outline: 3px solid var(--hz-pink); }

/* Search */
.hz-filters { border-radius: var(--hz-radius); padding: 20px; margin-bottom: 16px; }
.hz-filters__main { display: flex; gap: 10px; margin-bottom: 16px; }
.hz-filters__main input { flex: 1; }
.hz-filters__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.hz-filters__row label { display: flex; flex-direction: column; gap: 4px; justify-content: flex-end; }
.hz-filters__row .hz-check { flex-direction: row; align-items: center; min-height: 44px; }
.hz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.hz-ccard { border-radius: var(--hz-radius); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.hz-ccard:hover { transform: translateY(-6px); box-shadow: var(--hz-shadow); border-color: rgba(var(--hz-accent-rgb), .5); }
.hz-ccard__link { display: block; color: inherit !important; text-decoration: none; }
.hz-ccard__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--hz-blush); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hz-ccard:hover .hz-ccard__img { transform: scale(1.04); }
.hz-ccard__body { padding: 16px; position: relative; background: var(--hz-card); }
.hz-ccard__name { font-size: 1.05rem; margin: 0 0 2px; display: flex; gap: 6px; align-items: center; }
.hz-ccard__meta { color: var(--hz-muted); font-size: .85rem; margin-bottom: 8px; }
.hz-ccard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; }
.hz-ccard__stats dt { font-size: .75rem; color: var(--hz-muted); }
.hz-ccard__stats dd { margin: 0; font-weight: 700; }
.hz-ccard__price { margin: 0; font-size: .9rem; }
.hz-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hz-page { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--hz-line); text-decoration: none; color: var(--hz-text) !important; }
.hz-page.is-current { background: var(--hz-strong); color: var(--hz-strong-text) !important; border-color: var(--hz-strong); }

/* Profile */
.hz-profile__head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.hz-profile__img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: var(--hz-blush); border: 4px solid var(--hz-card); box-shadow: 0 0 0 3px var(--hz-pink), 0 0 40px rgba(var(--hz-accent-rgb), .35); }
.hz-profile__intro { flex: 1; min-width: 260px; }
.hz-profile__name { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hz-profile__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hz-statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; }
.hz-statbar > div { background: var(--hz-soft); border: 1px solid var(--hz-card-border); border-radius: 14px; padding: 14px 16px; }
.hz-statbar dt { font-size: .78rem; color: var(--hz-muted); }
.hz-statbar dd { margin: 0; font-size: 1.4rem; font-weight: 800; }
.hz-section { margin: 32px 0; }
.hz-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hz-package { border-radius: var(--hz-radius); padding: 22px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.hz-package:hover { transform: translateY(-4px); border-color: rgba(var(--hz-accent-rgb), .5); }
.hz-package.is-paused { opacity: .65; }
.hz-package__platform { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hz-link); font-weight: 700; margin-bottom: 6px; }
.hz-package__price { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.hz-package__facts { list-style: none; padding: 0; margin: auto 0 16px; font-size: .85rem; color: var(--hz-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hz-list { padding-left: 1.2em; margin: 0 0 12px; }
.hz-list li { margin-bottom: 4px; }
.hz-links { padding-left: 1.2em; }
.hz-reviews { display: grid; gap: 14px; }
.hz-review { margin: 0; border-radius: 14px; padding: 16px 18px; }
.hz-stars { color: var(--hz-line); letter-spacing: 2px; }
.hz-star.is-on { color: var(--hz-pink); }

/* Checkout & order */
.hz-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.hz-summary { position: sticky; top: 96px; }
.hz-summary__creator { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.hz-summary__creator img { border-radius: 50%; object-fit: cover; }
.hz-summary__creator p { margin: 0; }
.hz-totals { width: 100%; border-collapse: collapse; margin: 12px 0; }
.hz-totals th, .hz-totals td { padding: 8px 0; border-bottom: 1px solid var(--hz-line); font-weight: 400; text-align: left; }
.hz-totals td { text-align: right; white-space: nowrap; }
.hz-totals__total th, .hz-totals__total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
.hz-trust { list-style: none; padding: 0; margin: 0; color: var(--hz-muted); }
.hz-trust li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.hz-trust li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--hz-pink); }
.hz-order__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.hz-order__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 0 0 4px; }
.hz-order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hz-next { border: 2px solid var(--hz-pink) !important; box-shadow: 0 0 0 6px rgba(var(--hz-accent-rgb), .08); }
.hz-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hz-step { font-size: .8rem; color: var(--hz-muted); display: flex; flex-direction: column; gap: 6px; }
.hz-step__dot { height: 6px; border-radius: 999px; background: var(--hz-line); }
.hz-step.is-done { color: var(--hz-text); }
.hz-step.is-done .hz-step__dot { background: var(--hz-text); }
.hz-step.is-current { color: var(--hz-text); font-weight: 700; }
.hz-step.is-current .hz-step__dot { background: var(--hz-pink); box-shadow: 0 0 12px var(--hz-pink); }
.hz-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hz-timeline__item { border-left: 3px solid var(--hz-line); padding-left: 14px; }
.hz-timeline__item--draft { border-color: var(--hz-pink); }
.hz-media { display: block; max-width: 100%; max-height: 420px; border-radius: 12px; background: #17101F; margin: 8px 0; }
.hz-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.hz-log li { display: flex; flex-direction: column; }

/* Chat */
.hz-chat__list { height: 340px; overflow-y: auto; background: var(--hz-soft); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.hz-chat__empty { margin: auto; }
.hz-msg { max-width: 78%; align-self: flex-start; background: var(--hz-card); border: 1px solid var(--hz-card-border); border-radius: 14px 14px 14px 4px; padding: 8px 12px; animation: hz-pop .25s ease-out; }
.hz-msg.is-mine { align-self: flex-end; background: var(--hz-pink); border-color: var(--hz-pink); color: #17101F; border-radius: 14px 14px 4px 14px; }
.hz-msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.hz-msg__time { display: block; font-size: .7rem; opacity: .75; margin-top: 2px; }
.hz-chat__note { align-self: center; background: var(--hz-amber-bg); color: var(--hz-amber); border-radius: 10px; padding: 6px 10px; font-size: .8rem; margin: 0; }
.hz-chat__form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 6px; }
.hz-chat__form textarea { flex: 1; }
@keyframes hz-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Dashboard */
.hz-dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.hz-dash__nav { border-radius: var(--hz-radius); padding: 16px; position: sticky; top: 96px; }
.hz-dash__hello { font-weight: 700; margin: 4px 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hz-dash__nav ul { list-style: none; margin: 0; padding: 0; }
.hz-dash__nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; min-height: 44px; border-radius: 10px; color: var(--hz-text) !important; text-decoration: none; font-weight: 500; transition: background-color .15s; }
.hz-dash__nav a:hover { background: var(--hz-soft); }
.hz-dash__nav a.is-active { background: var(--hz-strong); color: var(--hz-strong-text) !important; }
.hz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.hz-stat { border-radius: var(--hz-radius); padding: 18px; }
.hz-stat__label { font-size: .82rem; color: var(--hz-muted); margin: 0 0 4px; }
.hz-stat__value { font-size: 1.5rem; font-weight: 800; margin: 0; }
.hz-table-wrap { overflow-x: auto; }
.hz-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hz-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hz-muted); padding: 8px 10px; border-bottom: 1px solid var(--hz-line); }
.hz-table td { padding: 12px 10px; border-bottom: 1px solid var(--hz-line); vertical-align: top; }
.hz-inbox { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.hz-inbox__list { list-style: none; margin: 0; padding: 0; border-radius: var(--hz-radius); overflow: hidden; }
.hz-inbox__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 14px 16px; border-bottom: 1px solid var(--hz-line); color: var(--hz-text) !important; text-decoration: none; }
.hz-inbox__list a.is-active { background: var(--hz-soft); box-shadow: inset 3px 0 0 var(--hz-pink); }
.hz-inbox__list .hz-small { grid-column: 1 / -1; }
.hz-notifs { list-style: none; margin: 0; padding: 0; }
.hz-notifs a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--hz-line); color: var(--hz-text) !important; text-decoration: none; }
.hz-notifs li.is-unread a { padding-left: 14px; border-left: 4px solid var(--hz-pink); }

/* Auth */
.hz-auth { max-width: 520px; margin: 0 auto; }
.hz-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--hz-soft); border: 1px solid var(--hz-card-border); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.hz-switch__item { text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; color: var(--hz-text) !important; font-weight: 600; min-height: 44px; transition: background-color .2s; }
.hz-switch__item.is-active { background: var(--hz-pink); color: #17101F !important; }
.hz-auth .login-username, .hz-auth .login-password, .hz-auth .login-remember, .hz-auth .login-submit { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.hz-auth .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.hz-auth .login-username label, .hz-auth .login-password label { font-weight: 600; font-size: .9rem; }
.hz-auth .login-submit input { min-height: 48px; border-radius: 999px; border: 0; background: var(--hz-pink); color: #17101F; font-weight: 700; font-size: 1rem; cursor: pointer; }

@media (max-width: 900px) {
	.hz-checkout, .hz-order__grid, .hz-dash, .hz-inbox { grid-template-columns: minmax(0, 1fr); }
	.hz-summary, .hz-dash__nav { position: static; }
	.hz-dash__nav ul { display: flex; overflow-x: auto; gap: 4px; }
	.hz-dash__nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
	.hz-card { padding: 18px; }
	.hz-steps { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; }
	.hz-filters__main { flex-direction: column; }
	.hz-profile__head { flex-direction: column; align-items: flex-start; }
	.hz-msg { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
	.hz *, .hz *::before, .hz *::after { animation: none !important; transition: none !important; }
}
