/* Hapi Tjetër – Regjistrim i shpejtë */
.htr-card {
	--htr-accent: var(--ht-primary, #a435f0);
	--htr-accent-dark: var(--ht-primary-dark, #8710d8);
	--htr-text: var(--ht-text, #2d2f31);
	--htr-muted: var(--ht-text-light, #6a6f73);
	--htr-border: var(--ht-border, #d1d7dc);
	box-sizing: border-box;
	max-width: 440px;
	margin: 32px auto;
	padding: 28px 26px 22px;
	background: #fff;
	color: var(--htr-text);
	border: 1px solid var(--ht-border-light, #e8e9eb);
	border-radius: 16px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
	font-family: inherit;
	line-height: 1.45;
}
.htr-card *, .htr-card *::before, .htr-card *::after { box-sizing: border-box; }

.htr-head { text-align: center; margin-bottom: 18px; }
.htr-title { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--htr-text); }
.htr-sub { margin: 0; color: var(--htr-muted); font-size: 15px; }
.htr-sub strong { color: var(--htr-text); }

.htr-google { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 0; }
.htr-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--htr-muted); font-size: 13px; }
.htr-or::before, .htr-or::after { content: ""; flex: 1; height: 1px; background: var(--htr-border); }

.htr-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--ht-bg, #f7f9fa); border-radius: 999px; }
.htr-tab {
	flex: 1; padding: 8px 10px; border: 0; border-radius: 999px; background: transparent;
	color: var(--htr-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.htr-tab.is-active { background: #fff; color: var(--htr-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.htr-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.htr-form[hidden] { display: none; }
.htr-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 14px; font-weight: 600; }
.htr-field small { font-weight: 400; color: var(--htr-muted); }
.htr-field input {
	width: 100%; height: 46px; padding: 0 14px; margin: 0;
	border: 1px solid var(--htr-border); border-radius: 10px; background: #fff;
	color: var(--htr-text); font: inherit; font-size: 16px; font-weight: 400; box-shadow: none;
}
.htr-field input:focus { outline: none; border-color: var(--htr-accent); box-shadow: 0 0 0 3px rgba(164, 53, 240, .15); }
.htr-pass { position: relative; display: block; }
.htr-pass input { padding-right: 70px; }
.htr-eye {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	padding: 6px 8px; border: 0; background: transparent; color: var(--htr-accent);
	font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.htr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.htr-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--htr-text); cursor: pointer; }
.htr-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--htr-accent); flex: none; }

.htr-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	min-height: 48px; padding: 10px 18px; margin-top: 4px; border: 0; border-radius: 999px;
	background: var(--htr-accent); color: #fff !important; font: inherit; font-size: 16px; font-weight: 700;
	text-decoration: none !important; cursor: pointer; transition: background .15s;
}
.htr-btn:hover, .htr-btn:focus-visible { background: var(--htr-accent-dark); }
.htr-btn:disabled { opacity: .7; cursor: wait; }
.htr-btn--ghost { background: transparent; color: var(--htr-accent) !important; border: 1px solid var(--htr-accent); }
.htr-btn--ghost:hover { background: var(--ht-primary-bg, #f3e8ff); }
.htr-actions { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; }

.htr-small { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--htr-muted); }
.htr-small a { color: var(--htr-accent); }

.htr-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.htr-msg[hidden] { display: none; }
.htr-msg--err { background: var(--ht-danger-bg, #fee2e2); color: #991b1b; }
.htr-msg--ok { background: var(--ht-success-bg, #d4edda); color: var(--ht-success, #1e6055); }

/* Modal */
.htr-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.htr-modal[hidden] { display: none; }
.htr-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 29, 31, .6); }
.htr-modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 16px; }
.htr-modal__box .htr-card { margin: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.htr-modal__x {
	position: absolute; top: 8px; right: 10px; z-index: 2; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--ht-text-light, #6a6f73);
	font-size: 26px; line-height: 1; cursor: pointer;
}
.htr-modal__x:hover { background: var(--ht-bg, #f7f9fa); }
html.htr-lock, html.htr-lock body { overflow: hidden; }

@media (max-width: 480px) {
	.htr-card { margin: 16px 0; padding: 22px 16px 18px; border-radius: 14px; }
	.htr-title { font-size: 21px; }
}

/* Lesson page: site logo + main menu above the player */
.htr-pnav {
	position: relative; z-index: 50; flex: 0 0 auto;
	display: flex; align-items: center; gap: 16px;
	height: 56px; padding: 0 20px; box-sizing: border-box;
	background: #fff; border-bottom: 1px solid var(--ht-border-light, #e8e9eb);
	font-family: Raleway, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.htr-pnav__logo { display: flex; align-items: center; height: 100%; text-decoration: none; color: #1c1d1f; font-weight: 700; }
.htr-pnav__logo img { display: block; height: 38px; width: auto; }
.htr-pnav__menu { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.htr-pnav__menu li { margin: 0; padding: 0; }
.htr-pnav__menu a {
	display: block; padding: 8px 12px; border-radius: 8px;
	color: #2d2f31; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.htr-pnav__menu a:hover, .htr-pnav__menu a:focus-visible { background: #fff4e6; color: #c86a00; }
.htr-pnav__toggle {
	display: none; margin-left: auto; padding: 8px 12px; border: 1px solid var(--ht-border, #d1d7dc);
	border-radius: 8px; background: #fff; color: #2d2f31; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.htr-back { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; padding-right: 10px !important; text-decoration: none; }
.htr-back-label { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.htr-back:hover .htr-back-label { color: #F99D29; }

@media (max-width: 720px) {
	.htr-pnav { padding: 0 12px; }
	.htr-pnav__logo img { height: 32px; }
	.htr-pnav__toggle { display: block; }
	.htr-pnav__menu {
		display: none; position: absolute; top: 100%; right: 8px; left: 8px;
		flex-direction: column; align-items: stretch; gap: 0; margin: 4px 0 0; padding: 6px;
		background: #fff; border: 1px solid var(--ht-border-light, #e8e9eb); border-radius: 12px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
	}
	.htr-pnav.is-open .htr-pnav__menu { display: flex; }
	.htr-pnav__menu a { padding: 12px 14px; font-size: 16px; }
	.htr-back-label { display: none; }
}
