:root {
	--hp-black: #000000;
	--hp-white: #ffffff;
	--hp-red: #e50914;
	--hp-red-hover: #b80710;
	--hp-border: #e4e4e7;
	--hp-muted: #52525b;
	--hp-surface: #fafafa;
}

.hp-trigger-btn {
	background: var(--hp-red);
	color: var(--hp-white);
	border: 1px solid var(--hp-red);
	padding: 10px 20px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border-radius: 6px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background-color 0.16s ease;
}

.hp-trigger-btn:hover {
	background: var(--hp-red-hover);
	color: var(--hp-white);
}

.hp-auth-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}

.hp-auth-modal-backdrop[hidden] {
	display: none !important;
}

.hp-auth-inline-host {
	max-width: 540px;
	margin: 32px auto;
}

.hp-auth-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: var(--hp-white);
	color: var(--hp-black);
	border: 1px solid var(--hp-black);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	font-family: system-ui, -apple-system, "Noto Sans Devanagari", sans-serif;
}

.hp-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: var(--hp-white);
	font-size: 22px;
	line-height: 1;
	border-radius: 6px;
	cursor: pointer;
}

.hp-modal-close:hover {
	border-color: var(--hp-red);
	color: var(--hp-red);
}

.hp-modal-header {
	background: var(--hp-black);
	color: var(--hp-white);
	padding: 24px 26px 20px;
	border-bottom: 4px solid var(--hp-red);
}

.hp-brand-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-right: 36px;
}

.hp-brand-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--hp-white);
}

.hp-brand-domain {
	font-size: 12px;
	color: #a1a1aa;
	font-family: ui-monospace, SFMono-Regular, monospace;
}

.hp-brand-tagline {
	margin: 4px 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hp-red);
}

.hp-welcome-hindi {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #e4e4e7;
	border-top: 1px solid #27272a;
	padding-top: 12px;
}

.hp-auth-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--hp-surface);
	border-bottom: 1px solid var(--hp-border);
}

.hp-tab-btn {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 13px 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--hp-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.hp-tab-btn.is-active {
	color: var(--hp-black);
	background: var(--hp-white);
	border-bottom-color: var(--hp-red);
}

.hp-auth-body {
	padding: 22px 26px 26px;
}

.hp-auth-panel {
	display: none;
	flex-direction: column;
	gap: 14px;
}

.hp-auth-panel.is-active {
	display: flex;
}

.hp-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 520px) {
	.hp-grid-2 {
		grid-template-columns: 1fr;
	}
}

.hp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hp-field label,
.hp-otp-box label,
.hp-avatar-picker label {
	font-size: 12px;
	font-weight: 700;
	color: var(--hp-black);
}

.hp-field input,
.hp-otp-box input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d4d4d8;
	border-radius: 6px;
	font-size: 14px;
	color: var(--hp-black);
	background: var(--hp-white);
}

.hp-field input:focus,
.hp-otp-box input:focus {
	outline: 2px solid var(--hp-red);
	outline-offset: 1px;
	border-color: var(--hp-black);
}

.hp-input-action {
	display: flex;
	gap: 8px;
}

.hp-input-action input {
	flex: 1;
}

.hp-otp-box {
	padding: 12px;
	background: var(--hp-surface);
	border: 1px solid var(--hp-border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hp-otp-box[hidden],
.hp-field[hidden],
.hp-alert[hidden] {
	display: none !important;
}

.hp-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hp-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--hp-muted);
}

.hp-link-btn {
	background: none;
	border: none;
	color: var(--hp-red);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
}

.hp-submit-btn {
	width: 100%;
	padding: 12px 18px;
	background: var(--hp-red);
	color: var(--hp-white);
	border: none;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.16s ease, opacity 0.16s ease;
}

.hp-submit-btn:hover:not(:disabled) {
	background: var(--hp-red-hover);
}

.hp-submit-btn:disabled {
	background: #27272a;
	color: #a1a1aa;
	cursor: not-allowed;
}

.hp-secondary-btn,
.hp-dark-btn {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
}

.hp-secondary-btn {
	background: var(--hp-white);
	color: var(--hp-black);
	border: 1px solid var(--hp-black);
}

.hp-dark-btn {
	background: var(--hp-black);
	color: var(--hp-white);
	border: 1px solid var(--hp-black);
}

.hp-upload-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--hp-red);
	cursor: pointer;
	text-decoration: underline;
}

.hp-avatar-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin-top: 8px;
}

.hp-avatar-option {
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--hp-surface);
	cursor: pointer;
}

.hp-avatar-option.is-selected {
	border-color: var(--hp-red);
	background: #fff5f5;
}

.hp-avatar-option img {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: block;
	border-radius: 8px;
	object-fit: cover;
}

.hp-alert {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 12px;
	border: 1px solid var(--hp-black);
}

.hp-alert.is-error {
	background: #fef2f2;
	border-color: var(--hp-red);
	color: #991b1b;
}

.hp-alert.is-success {
	background: #f0fdf4;
	border-color: #16a34a;
	color: #166534;
}

/* Reader Dashboard */
.hp-dashboard {
	max-width: 780px;
	margin: 24px auto;
	background: var(--hp-white);
	border: 1px solid var(--hp-black);
	border-radius: 10px;
	overflow: hidden;
}

.hp-dashboard-head {
	background: var(--hp-black);
	color: var(--hp-white);
	padding: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 4px solid var(--hp-red);
}

.hp-dashboard-identity {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hp-dashboard-identity img {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	border: 2px solid var(--hp-red);
	object-fit: cover;
}

.hp-dash-id-line {
	font-size: 12px;
	color: #d4d4d8;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hp-mono-id {
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-weight: 700;
	color: var(--hp-white);
}

.hp-dashboard-identity h2 {
	margin: 4px 0;
	font-size: 20px;
	color: var(--hp-white);
}

.hp-dashboard-identity p {
	margin: 0;
	font-size: 13px;
	color: #a1a1aa;
}

.hp-dashboard-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hp-coins-box {
	text-align: right;
}

.hp-coins-box span {
	display: block;
	font-size: 11px;
	color: #a1a1aa;
}

.hp-coins-box strong {
	font-size: 18px;
	color: var(--hp-white);
}

.hp-dashboard-form {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
