/*============================================================================================*/
/* Starbazar – prihlásenie, registrácia, môj účet – dizajn 2027                                */
/*============================================================================================*/

/* ---------- Prihlásenie / registrácia ---------- */
.sb-auth-page {
	padding: 36px 0 72px;
}

.sb-auth {
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
}

.sb-auth--register {
	grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
	align-items: start;
}

.sb-auth__card {
	padding: 32px;
	margin: 0;
	box-shadow: 0 24px 60px rgba(15, 34, 48, 0.08);
}

.sb-auth__card h1 {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--sb-ink, #0f2230);
}

.sb-auth__lead {
	margin: 0 0 24px;
	color: var(--sb-muted, #6d7d89);
	font-size: 15px;
}

.sb-auth__lead a,
.sb-auth__label-row a {
	color: var(--sb-accent-dark, #0b6f9e);
	font-weight: 600;
}

.sb-auth__form {
	display: grid;
	gap: 0;
}

.sb-auth__form .sb-field {
	margin-bottom: 16px;
}

.sb-auth__form > .sb-btn {
	min-height: 52px;
	margin-top: 4px;
	font-size: 16px;
}

.sb-auth__label-row {
	display: flex !important;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.sb-auth__label-row a {
	font-size: 13px;
	font-weight: 500;
}

/* heslo so zobrazením */
.sb-pass {
	position: relative;
	display: block;
}

.sb-pass input {
	padding-right: 48px !important;
}

.sb-pass__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #8a9aa6;
	cursor: pointer;
	transform: translateY(-50%);
}

.sb-pass__toggle svg {
	width: 20px;
	height: 20px;
}

.sb-pass__toggle:hover,
.sb-pass__toggle.is-on {
	color: var(--sb-accent, #1495d6);
	background: var(--sb-soft, #f4f8fb);
}

.sb-auth__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 14px;
	font-size: 13px;
	color: var(--sb-muted, #6d7d89);
}

.sb-auth__divider::before,
.sb-auth__divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--sb-card-border, #e3ecf2);
}

/* výhody */
.sb-auth__aside h2 {
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--sb-ink, #0f2230);
}

.sb-benefits {
	display: grid;
	gap: 20px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.sb-benefits li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.sb-benefits__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(145deg, #eef7fd, #e1f0fa);
	color: var(--sb-accent, #1495d6);
}

.sb-benefits__icon svg {
	width: 22px;
	height: 22px;
}

.sb-benefits strong {
	display: block;
	font-size: 16px;
	color: var(--sb-ink, #0f2230);
}

.sb-benefits p {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--sb-muted, #6d7d89);
}

.sb-auth__alt {
	font-weight: 600;
	color: var(--sb-accent-dark, #0b6f9e);
}

.sb-auth .sb-step {
	scroll-margin-top: 0;
}

/* ---------- Môj účet ---------- */
.sb-account-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 20px;
	padding: 22px 24px;
}

.sb-account-head__avatar {
	width: 64px;
	height: 64px;
	font-size: 26px;
}

.sb-account-head__who h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--sb-ink, #0f2230);
	overflow-wrap: anywhere;
}

.sb-account-head__who p {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--sb-muted, #6d7d89);
	overflow-wrap: anywhere;
}

.sb-account-head__stats {
	display: flex;
	gap: 8px;
	margin: 0;
}

.sb-account-head__stats > div {
	min-width: 92px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--sb-soft, #f4f8fb);
	text-align: center;
}

.sb-account-head__stats dt {
	font-size: 12px;
	font-weight: 600;
	color: var(--sb-muted, #6d7d89);
}

.sb-account-head__stats dd {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--sb-ink, #0f2230);
}

.sb-account-head__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.sb-account-head__logout {
	padding: 0 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--sb-muted, #6d7d89);
	text-decoration: underline;
}

.sb-account-head__logout:hover {
	color: #b42318;
}

.sb-account-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 28px 0 14px;
}

.sb-account-title h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--sb-ink, #0f2230);
}

.sb-account-title p {
	margin: 0;
	font-size: 13px;
	color: var(--sb-muted, #6d7d89);
}

.sb-myads {
	display: grid;
	gap: 12px;
}

.sb-myad {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 12px 18px 12px 12px;
}

.sb-myad__img {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var(--sb-soft, #f4f8fb);
}

.sb-myad__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb-myad__body {
	min-width: 0;
}

.sb-myad__body h3 {
	margin: 6px 0 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sb-myad__body h3 a {
	color: var(--sb-ink, #0f2230);
}

.sb-myad__body h3 a:hover {
	color: var(--sb-accent-dark, #0b6f9e);
}

.sb-myad__body .sb-badge {
	box-shadow: none;
	margin-left: 4px;
}

.sb-myad__price {
	font-size: 19px;
	font-weight: 700;
	color: var(--sb-ink, #0f2230);
	white-space: nowrap;
}

.sb-myad__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sb-myad__actions .sb-btn {
	min-height: 40px;
	padding: 0 14px;
	font-size: 14px;
}

.sb-myad__view {
	font-size: 14px;
	font-weight: 600;
	color: var(--sb-accent-dark, #0b6f9e);
}

.sb-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.sb-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.sb-status--ok { background: #e8f8ef; color: #0f8a45; }
.sb-status--wait { background: #fff6e0; color: #a16207; }
.sb-status--ban { background: #fff0ef; color: #b42318; }

/* ---------- Responzívnosť ---------- */
@media (max-width: 991.98px) {
	.sb-auth,
	.sb-auth--register {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		max-width: 560px;
	}

	.sb-account-head {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.sb-account-head__stats,
	.sb-account-head__actions {
		grid-column: 1 / -1;
	}

	.sb-account-head__actions {
		justify-content: flex-start;
	}
}

@media (max-width: 767.98px) {
	.sb-auth-page {
		padding: 16px 0 48px;
	}

	.sb-auth__card {
		padding: 22px 18px;
	}

	.sb-auth__card h1 {
		font-size: 25px;
	}

	.sb-auth__aside h2 {
		font-size: 21px;
	}

	.sb-account-head {
		gap: 14px;
		padding: 18px;
	}

	.sb-account-head__avatar {
		width: 52px;
		height: 52px;
		font-size: 22px;
	}

	.sb-account-head__who h1 {
		font-size: 20px;
	}

	.sb-account-head__stats > div {
		flex: 1 1 0;
	}

	.sb-account-head__actions .sb-btn {
		flex: 1 1 auto;
	}

	.sb-myad {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		padding: 10px;
	}

	.sb-myad__body h3 {
		font-size: 15px;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.sb-myad__body .sb-card__meta li:nth-child(2) {
		display: none;
	}

	.sb-myad__price {
		grid-column: 1 / 2;
		font-size: 16px;
	}

	.sb-myad__actions {
		grid-column: 2 / 3;
		justify-content: flex-end;
	}
}

/* jednostĺpcové (zabudnuté / nové heslo) */
.sb-auth--single {
	grid-template-columns: minmax(0, 460px);
	justify-content: center;
}

.sb-auth__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border-radius: 16px;
	background: linear-gradient(145deg, #eef7fd, #e1f0fa);
	color: var(--sb-accent, #1495d6);
}

.sb-auth__icon svg {
	width: 26px;
	height: 26px;
}

.sb-auth__done {
	display: flex;
	gap: 12px;
	margin: 6px 0 18px;
	padding: 16px;
	border-radius: 14px;
	background: #eef9f2;
	color: #14532d;
	font-size: 14px;
	line-height: 1.5;
}

.sb-auth__done svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #16a34a;
}

.sb-auth__done p {
	margin: 0;
}

.sb-auth__back {
	margin: 18px 0 0;
	text-align: center;
	font-size: 14px;
}

.sb-auth__back a {
	color: var(--sb-muted, #6d7d89);
}

/* topovanie v Mojich inzerátoch */
.sb-myad__actions .sb-btn--top { background: linear-gradient(135deg, #f7c531, #e0a400); border-color: #e0a400; color: #3d2c00 !important; box-shadow: 0 6px 16px rgba(224, 164, 0, .28); }
.sb-myad__actions .sb-btn--top svg { fill: currentColor; stroke: none; }
.sb-myad__actions .sb-btn--top:hover { filter: brightness(1.05); }
